package com.pozheg;

/**
 * Callback interface to work with PlayerService.
 * Used because we have to do some operations with UI in UI thread, but PlayerService use another thread inside.
 *
 * @author Eugeny Pozharsky
 */
public interface PlayerCallback {
    /**
     * Called before starting play
     */
    public void onPreStart();

    /**
     * Called after start playing successfully
     */
    public void onStarted();

    /**
     * Called after stop playing
     */
    public void onStopped();

    /**
     * Called if start failed
     */
    public void onStartFailed();
}
